If using a few <#906#>APL<#906#> symbols in
an ordinary document is all you need, you can forget about the
<#907#>APL<#907#> front end. Simply adding the option 5 to
your preferred LATEX document style (e.g. 6)
enables you to state in your paper, e.g.:
By combining the simple <#908#>APL<#908#> symbols
and we obtain the
compound symbol .
The code to produce this statement is:
verbatim122#
In fact, you can typeset all simple and
compound symbols of <#909#>APL<#909#>2, as we have
defined macros for all of them.
Tables #ta:simpleapltwo#97> and #ta:compoundapltwo#98>,
respectively, show them together with their macro names.
<#2703#>Table<#2703#>:
<#2704#>Simple <#910#>APL<#910#>2 Symbols <#2704#>
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
|
|
|
<#2758#>Table<#2758#>:
<#2759#>Compound <#911#>APL<#911#>2 Symbols <#2759#>
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
|
IBM was the first company to implement <#912#>APL<#912#>;SPMnbsp; but it did not remain
the only one. Companies such as I.~P.~Sharp and Dyadic Systems have
produced their own versions of the language. These and other companies,
however, introduced only a few symbols not found in <#913#>APL<#913#>2.
We have added twenty additional symbols to the <#914#>APL<#914#>2 character set
to support typesetting Dyalog <#915#>APL<#915#>, I--<#916#>APL<#916#>, Sharp <#917#>APL<#917#>, and <#918#>APL<#918#>.68000
(see Table #ta:dialects#112>).
<#2801#>Table<#2801#>:
<#2802#>Symbols Used in APL Dialects <#2802#>
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 |
|
100 |
|
101 |
|
102 |
|
103 |
|
104 |
|
105 |
|
|
As you have probably guessed from the names in Tables
#ta:simpleapltwo#119>, #ta:compoundapltwo#120>, and #ta:dialects#121>
we stick to a naming convention in order to
minimize name clashes with other macro packages and
also help users remembering the macro names. All macro
names start with the 106 prefix, followed by the name of
the symbol used in the <#919#>APL<#919#> literature.
The symbol names for <#920#>APL<#920#>2 characters are taken from [#IBM##1###].
For those characters (cf. Table #ta:dialects#123>)
which are not included in the IBM list
we have invented consistent names. We always
use symbol names, not the name of <#921#>APL<#921#> functions
these symbols might represent.
The name of a compound <#922#>APL<#922#> symbol is
the concatenation of the names
of the simple <#923#>APL<#923#> symbols it is created from.
<#2805#>Figure<#2805#>:
<#2806#>The Atomic Vector of <#1326#>APL<#1326#>2<#2806#>
<#2804#>
#APLarray129#
<#2804#> |
|
As can be seen in Figure~#atomic#390> which shows the
character set (the atomic vector )
of <#1327#>APL<#1327#>2, not all <#1328#>APL<#1328#> characters are fancy
symbols, and the language uses ordinary
alphanumeric characters as well.
To allow for a clean interface between the
<#1329#>APL<#1329#> front end and the LATEX part of our
system, we decided to define macros for
these characters as well. Their names are
constructed as follows:
- Each macro name starts with 107.
- For each letter we append the upper or lowercase
letter, if the letter is underlined we prefix
the letter with ``u''.
Capital letters: 108, ..., 109.
Lowercase letters: 110, ..., 111.
Underlined capital letters: 112, ..., 113.
Underlined lowercase letters: 114, ..., 115.
- For numbers we simply append their names: 116,
..., 117.
The tiny numbers in the atomic vector of Figure~#atomic#395>
correspond to positions for which no printable characters
are defined by <#1330#>APL<#1330#>2. In case the <#1331#>APL<#1331#> front end
encounters a nonprintable character, e.g. the one
at position 20 in , it generates
118. The definition of the LATEX macro
119 determines the printed representation of
this character (the default macro in our style
just prints the corresponding number in style 120).
Let us close this section with one more example of typesetting
<#1332#>APL<#1332#> symbols:
verbatim123#
<#400#>displays as:<#400#>
corresponds to
A-1 in mathematical notation
and corresponds
to AT.